Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> n=int(input("请输入一个数字"))
请输入一个数字5
>>> for i in range(n):
...     print(" "*(n-i-1)+"* "*(i+1))
... 
...     
    * 
   * * 
  * * * 
 * * * * 
* * * * * 
